<?php
/**
 * The Template for displaying all single posts.
 *
 * @package WordPress
 * @subpackage pet-wares
 * @since DEC 2011
 */

get_header(); ?>

    <div id='content' class="grid_9"> 
		 <div class='gray-box'>
    	<div class='gray-box-bg category-name-bg'>
			<h2>Category: <?php the_category(" ");?></h2>
		</div>
    </div>
            <?php while ( have_posts() ) : the_post(); ?>
            	<div class='member'>
			<div class="logo grid_3 alpha">
				<?php 
				if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
					the_post_thumbnail();
				}	 
				?>
			</div>
			 <?php
            	$url = get_post_meta($post->ID, 'kda_memeber-site-url', true);
            ?>
            <div class="member-content grid_6 omega">
            	<a class="catLink" href="<?php echo $url; ?>" target="_blank"><?php the_title(); ?></a>
            	<?php the_content(); ?>
			</div>  
		</div>
		<div class='member-bg'>
		</div>
			<?php endwhile; // end of the loop. ?>
        </div>
<?php get_sidebar(); ?>
                <div class="clear"></div>
<?php get_footer(); ?>
